<?php get_header(); ?>

    <!---- BODY ----->
    <div id="body" class="width-100per">
        <div id="content" class="div-center width-x1000 bg-color-white padding-top-x10 padding-bottom-x10 "  style="margin-top: 15px; min-height: 500px;">
<?php get_template_part('breadcrumbs'); ?>
            <!---- Content ---->
            <div id="page-content" class="single-post-content">
                <?php if (have_posts()) : while (have_posts()) : the_post();?>
                <div id="page-post">
                    <span class="floatright margin-right-x10" style="font-size:14px; line-height: 24px; color: #888"><?php bloginfo('title');?> , <?php the_time( 'F jS, Y' ) ?> <!-- by <?php the_author() ?> --></span><div class="clear"></div>
                    <?php 
                        $img = get_post_meta($post -> ID, "imagelink1",true);
                        $price = get_post_meta($post -> ID, "price",true);
                        $pricevn = get_post_meta($post -> ID, "pricevn",true);
                    ?>
                    <div class="clear"></div>
                    <div id="single-post-index" class="clear">
                        <div id="single-post-image">
                            <?php echo '<div style="position: relative; background: url('. $img . ') 0 0 no-repeat; background-size: cover; width: 380px; height: 430px; border: solid 1px #ddd"></div>';?>
                        </div>
                        <div id="single-post-info">
                            <h2 id="post-<?php the_ID(); ?>"><?php the_title();?></h2>
                            <p>Giá: <?php echo $price;?></p>
                            <p>Giá sau thuế:</p>
                            <p>Nhà sản xuất:</p>
                            <p>Khuyến mãi:</p>
                            <p>Tình trạng:</p>
                            <?php dynamic_sidebar( 'Addition' ); ?>
                        </div>
                    </div>
                    <div id="single-post-decription">
                        <h3>Mô tả sản phẩm</h3>
                        <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
                    </div>
                    
                </div>
                <?php endwhile; endif; ?>
            <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
            </div>
        </div>
    </div> 
<?php get_footer(); ?>